//
// File:	Global.cpp
// Author:	Thomas TISSOT-DUPONT
// Login:	<thomas.tissotdupont@free.fr>
//
// Created:	17/04/2010 at 18:22:16
// Purpose:	
//
#include "Global.hpp"

//------------------------------------------------------------------
// Constructor / Destructor
//------------------------------------------------------------------
Global::Global()
	:	m_flFrameTime(0.0f),
		m_flCurrentTime(0.0f),
		m_clock()
{
}

Global::~Global()
{
}

//------------------------------------------------------------------
// Update
//------------------------------------------------------------------
void Global::Update()
{
	m_flFrameTime = m_clock.GetElapsedTime();
	m_flCurrentTime += m_flFrameTime;
	m_clock.Reset();
}

//------------------------------------------------------------------
// Frame Time
//------------------------------------------------------------------
float Global::GetFrameTime() const
{
	return m_flFrameTime;
}

//------------------------------------------------------------------
// CurrentTime
//------------------------------------------------------------------
float Global::GetCurTime() const
{
	return m_flCurrentTime;
}
